<html>
	<head>
        <title>BeOrganized! Desktop</title>
        <link href="main.css" rel="stylesheet" type="text/css"/>
	    <link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css"/>
	    <link rel="stylesheet" type="text/css" href="ext/air/resources/ext-air.css"/>
        <link id="theme" rel="stylesheet" type="text/css" href="ext/resources/css/xtheme-gray.css"/>
        <!-- Uncomment the following line to add introspection.  When running the application hit F12 to bring up the introspector -->
        <script type="text/javascript" src="AIRIntrospector.js"></script>
        
        <!-- Uncomment the following line to use the AIR source viewer -->
        <!-- <script type="text/javascript" src="AIRSourceViewer.js"></script> -->
        
        <!-- Uncomment the following line to use the AIR Localizer -->
        <!-- <script type="text/javascript" src="AIRLocalizer.js"></script> -->
        
        <!-- Uncomment the following line to use the AIR Menu Builder -->
        <!-- <script type="text/javascript" src="AIRMenuBuilder.js"></script> -->
        
        <script type="text/javascript" src="AIRAliases.js"></script>
        <script type="text/javascript">
        	
            // AIR-related functions created by the developer
            
            // reads the content of a local text file
            function readLocalFile(){
                var f = air.File.applicationDirectory.resolvePath("LocalFile.txt");
				
                var fs = new air.FileStream();
                fs.open(f, air.FileMode.READ);
                var content = fs.readUTFBytes(fs.bytesAvailable);
                fs.close();
                
                return content;
            }
            
            // loads the content of a remote URL
            function doRequest(url) {
               var req = new XMLHttpRequest();
               req.onreadystatechange = function() { 
                    if (req.readyState == 4) {
                        var str = req.responseText;
                        if (str.length > 400) {
                            str = str.substring(0, 399);
                            str += "..";
                        }
                        alert('readystate: ' + req.readyState + '\n' +
                            'status/statusText: ' + req.status + '/' + 
                             req.statusText + '\n' +
                            'responseText (400 chars): '  + "\n\n" + str);
                    }
                };
                req.open('GET', url, true);
                req.send(null);                
            }
			
			function openInBrowser(url) {
				air.navigateToURL( new air.URLRequest(url)); 
			}
            
        </script>
	    <script type="text/javascript" src="ext/adapter/ext/ext-base.js"></script>
	    <script type="text/javascript" src="ext/ext-all.js"></script>
	    <script type="text/javascript" src="ext/air/ext-air.js"></script>
	    <script type="text/javascript" src="js/md5.js"></script>
	    <script type="text/javascript" src="js/tools.js"></script>
	    <script type="text/javascript" src="js/data.js"></script>
	    <script type="text/javascript" src="js/TaskChecker.js"></script>
	    <script type="text/javascript" src="js/index.js"></script>
		
	</head>

    <body>
    	<div id="root" style="width: 100%; height: 100%;"></div>
    </body>
</html>